package io.nutz.nutzsite.module.exam.models;

import io.nutz.nutzsite.common.base.BaseModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import org.nutz.dao.entity.annotation.*;
import java.io.Serializable;
					
/**
 * 解题统计表 exam_solutionac
 * 
 * @author lrw
 * @date 2020-04-08
 */
@Table("exam_solutionac")
public class Solutionac extends BaseModel implements Serializable {
	private static final long serialVersionUID = 1L;
	
			@Id
		@Column("qid")
	@Comment("题号")
	@ColDefine(type = ColType.VARCHAR, width = 64)
	private Integer qid;

		/** 题型 */
	@Column("qtid")
	@Comment("题型")
	private Integer qtid;

		/** 正确数量 */
	@Column("solved")
	@Comment("正确数量")
	private Integer solved;

		/** 部分正确数量 */
	@Column("hfsolved")
	@Comment("部分正确数量")
	private Integer hfsolved;

		/** 提交次数 */
	@Column("submit")
	@Comment("提交次数")
	private Integer submit;

	
	public void setQid(Integer qid) 
	{
		this.qid = qid;
	}

	public Integer getQid() 
	{
		return qid;
	}

	public void setQtid(Integer qtid) 
	{
		this.qtid = qtid;
	}

	public Integer getQtid() 
	{
		return qtid;
	}

	public void setSolved(Integer solved) 
	{
		this.solved = solved;
	}

	public Integer getSolved() 
	{
		return solved;
	}

	public void setHfsolved(Integer hfsolved) 
	{
		this.hfsolved = hfsolved;
	}

	public Integer getHfsolved() 
	{
		return hfsolved;
	}

	public void setSubmit(Integer submit) 
	{
		this.submit = submit;
	}

	public Integer getSubmit() 
	{
		return submit;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("qid", getQid())
            .append("qtid", getQtid())
            .append("solved", getSolved())
            .append("hfsolved", getHfsolved())
            .append("submit", getSubmit())
            .toString();
    }
}
